<?

$d = component_data($c); 
$s = component_settings($c);

//debug($s);	
//debug($d);	

?><div id="cpn-<?=$c?>" class="recent-list"><?

	?><div class="caption"><?=$s['caption']?></div><?
	
	foreach($d = component_data($c) as $id => $v) {
		$url = "$s[base]$id/";

		?><div class="block"><?
		
			if ($v['date_create']) { ?><div class="date"><?=$v['date']?></div><? }

			?><a href="<?=$url?>" title="<?=h($v['title'])?>" class="title link"><?=$v['title']?></a><?

			/* if ($v['anons']) { ?><div class="anons"><?=$v['anons']?></div><? } */
			
		?></div><?
	} 
	
	?><div class="clearer"></div><?

?></div><?
	
?>